package com.baosight.risk.api.ridc;

import com.baosight.risk.base.entity.MultipleUpdateStatus;
import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.ridc.entity.*;
import com.baosight.risk.service.ridc.vo.RidcRiskAdvanceVO;
import com.baosight.risk.service.ridc.vo.RidcRiskDescVO;
import com.baosight.risk.service.ridc.vo.RidcRiskEvaluateVO;
import com.baosight.risk.service.ridc.vo.RidcRiskVO;
import com.baosight.risk.service.riim.vo.RiimRiskImportVO;
import com.baosight.risk.service.xtzy.entity.XtzyUser;

import java.util.List;
import java.util.Map;

/**
 * @author houmingcheng
 * @date 2019.7.22
 */
public interface RidcRiskService extends BaseService<RidcRisk> {

    void saveRidcRisk(RidcRiskVO ridcRiskVO);

    /**
     * 通过定时任务添加重点风险
     */
    void addRidcRisk(String jobParam, String jobId,String manageCompCode,String manageCompName) throws Exception;

    /**
     * 根据参数查询风险档案
     */
    List<RidcRisk> selectList(RidcRisk ridcRisk);

    /**
     * 获取风险档案详情
     */
    RidcRiskVO getRidcRiskDetail(String ridcRiskId);

    Integer updateStatus(MultipleUpdateStatus multipleUpdateStatus);

    void saveRidcRiskDesc(RidcRiskDesc ridcRiskDesc);

    void saveRidcRiskEvaluate(RidcRiskEvaluate ridcRiskEvaluate);

    void saveRidcRiskAdvance(RidcRiskAdvance ridcRiskAdvance);

    Integer deleteRidcRiskDescByIds(List<String> ids);

    Integer deleteRidcRiskEvaByIds(List<String> ids);

    Map importWord(String ridcId);

    Integer deleteRidcRiskAdByIds(List<String> ids);

    void saveRidcRiskResult(RidcRiskEvaluateResult ridcRiskEvaluateResult);

    List<XtzyUser> getUser(Map<String, String> params);

    List<RidcRisk> selectListByIds(List<String> ids);

    List<RidcRisk> selectListByDept(RiimRiskImportVO importVO);

    void updateRowOrderDesc(RidcRiskDescVO vo);

    void updateRowOrderAdvance(RidcRiskAdvanceVO vo);

    void updateRowOrderEvaluate(RidcRiskEvaluateVO vo);

    Map pushArchives(String ridcRiskId);
}
